package cn.remex.core.log;

import ch.qos.logback.classic.pattern.ClassicConverter;
import ch.qos.logback.classic.spi.ILoggingEvent;
import cn.remex.core.util.JsonHelper;

/**
 * Disc:
 * Created by xinxinran on 2017/2/12.
 */
public class MeesageJsonFormatConverter extends ClassicConverter {
    @Override
    public String convert(ILoggingEvent iLoggingEvent) {
        String originMessage = iLoggingEvent.getFormattedMessage();

        return JsonHelper.toJsonString(originMessage);
    }
}


